import request from '@/utils/request'

export  default {
  pageListDriverCondition(current,limit,driverQuery){
    return request({
      url: `/driver/pageListDriver/${current}/${limit}`,
      method: 'post',
      data: driverQuery,
    })
  },

  deleteDriver(id){
    return request({
      url:`/driver/deleteDriver/${id}`,
      method:'get',

    })
  },

  saveDriver(driver) {
    return request({
      url: `/driver/saveDriver`,
      method: 'post',
      data: driver,
    })
  },
  findDriverById(id) {
    return request({
      url: `/driver/findDriverById/${id}`,
      method: 'get',
    })
  },
  updateDriver(driver) {
    return request({
      url: `/driver/updateDriver`,
      method: 'post',
      data: driver,
    })
  },

  deleteDriverByIds(ids) {
    return request({
      url: `/driver/deleteDriverByIds`,
      method: 'post',
      data: ids,
    })
  },

  getDept(){
    return request({
      url:`/driver/getDeptById/1`,
      method:'get',
    })
  }






}
